// IUserDao
package org.yate.oa.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.yate.oa.dao.IBaseMapperDao;
import org.yate.oa.model.UserRefRoleEntity;

/**
 * @author Yate
 * @date 2013年9月23日
 * @description TODO
 * @version 1.0
 */
@Repository(value = "userRefRoleMapper")
@CacheNamespace(size = 512)
public interface UserRefRoleMapper extends
		IBaseMapperDao<UserRefRoleEntity, Long> {
	public void batchAdd(List<UserRefRoleEntity> entities);

	public List<UserRefRoleEntity> getEntityByRoleId(
			@Param(value = "rid") long rid);
	
	public void removeByRoleId(@Param(value = "rid") long rid);
	
}
